package com.youlu.campus.admin.course.dto;

import lombok.Data;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author : [dengbo]
 * @className : CourseVideoSaveDTO
 * @description : [描述说明该类的功能]
 * @createTime : [2022/5/16 23:04]
 */
@Data
public class CourseVideoSaveDTO {
    private String id;
    @NotBlank(message = "课程id不能为空")
    private String courseId;
    //@NotNull(message = "视频类型不能为空")
    //@Range(min = 0, max = 1, message = "视频类型错误")
    private Integer type;
    //@NotBlank(message = "视频/音频封面地址不能为空")
    private String coverUrl;
    //@NotBlank(message = "视频/音频文件不能为空")
    private String resourceUrl;
    //@NotNull(message = "视频/音频时长不能为空")
    private Integer totalDuration;
    @NotBlank(message = "名称不能为空")
    private String name;
    @NotNull(message = "排序值不能为空")
    private Integer priority = 0;

    /**
     * 1、不试看
     * 2、试看
     */
    private Integer tryPlay = 1;
    /**
     * 描述/内容
     */
    private String description;
}
